package Model;

public class ShowBlogMessage {
	private String blogid;
	private String shortmessage;
	private String text;
	private String uptime;
	private String sourceid;
	private String sourceurl;
	private String sourcename;
	private String uptype;
	/* don't save in database   only for get source*/
	public String getBlogid() {
		return blogid;
	}

	public void setBlogid(String blogid) {
		this.blogid = blogid;
	}

	public String getShortmessage() {
		return shortmessage;
	}

	public void setShortmessage(String shortmessage) {
		if(shortmessage.length()<20)
		this.shortmessage = shortmessage;
		else
		{
			this.shortmessage=shortmessage.substring(0,15);
		}
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getUptime() {
		return uptime;
	}

	public void setUptime(String uptime) {
		this.uptime = uptime;
	}

	public String getSourceid() {
		return sourceid;
	}

	public void setSourceid(String sourceid) {
		this.sourceid = sourceid;
	}

	public String getSourceurl() {
		return sourceurl;
	}

	public void setSourceurl(String sourceurl) {
		this.sourceurl = sourceurl;
	}

	public String getSourcename() {
		return sourcename;
	}

	public void setSourcename(String sourcename) {
		this.sourcename = sourcename;
	}

	public String getUptype() {
		return uptype;
	}

	public void setUptype(String uptype) {
		this.uptype = uptype;
	}

	@Override
	public String toString() {
		return "ShowBlogMessage [blogid=" + blogid + ", shortmessage="
				+ shortmessage + ", text=" + text + ", uptime=" + uptime
				+ ", sourceid=" + sourceid + ", sourceurl=" + sourceurl
				+ ", sourcename=" + sourcename + ", uptype=" + uptype + "]";
	}
	
}
